<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<input type="hidden" id="advancedStatus" name="advancedStatus"
                value="<#if (condition.advancedStatus)??>${condition.advancedStatus!''}</#if>">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="strategyCode"><@label key="strategyCode.C,colon">维护策略编号：</@label></label> <input type="text" name="strategyCode" value="${condition.strategyCode!''}" /></li>
                <li><label id="strategyText"><@label key="strategyText.C,colon">维护策略描述：</@label></label> <input type="text" name="strategyText" value="${condition.strategyText!''}" /></li>
                <li><label><@label key="strategyTypeECode.C,colon">策略类型：</@label></label> <select name="strategyTypeECode">
                        <option value=""><@label key="all.C">所有</@label></option> <#list strategyType as types>
                        <option value="${types.eCode}"<#if condition.strategyTypeECode?? && condition.strategyTypeECode == types.eCode> selected="selected"</#if>>${types.eCodeText}</option> </#list>
                </select>
                </li>
                
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
                <li class="advancedQuery" >            
                <a href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel());">
                    <@label key="advancedQuery.C">高级查询</@label>
                </a>
                <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
            </li>
            </ul>
        </div>
    </div>
    <div id="collapsablePanel" style="display: none;" class="pageHeader">
        <div class="searchBar poStatus">
        <ul class="searchContent">
                <li><label><@label key="strategyTimeValue.C,colon">周期：</@label></label> <input type="text" name="strategyTimeValue" value="${condition.strategyTimeValue!''}" /></li>
                    <li><label><@label key="timeUnitECode.C,colon">周期单位：</@label></label> <select name="timeUnitECode">
                        <option value=""><@label key="all.C">所有</@label></option> <#list timeUnit as types>
                        <option value="${types.eCode}"<#if condition.timeUnitECode?? && condition.timeUnitECode == types.eCode> selected="selected"</#if>>${types.eCodeText}</option> </#list>
                </select>
                </li>
                <li><label><@label key="strategyCountValue.C,colon">损耗点：</@label></label> <input type="text" name="strategyCountValue" value="${condition.strategyCountValue!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li><label><@label key="lockFlag.C,colon">锁定标记：</@label></label> <select name="lockFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                </select>
                </li>
                 <li><label><@label key="memo.C,colon">备注：</@label></label> <input type="text" name="memo" value="${condition.memo!''}" /></li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="MAINTAINSTRATEGY_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="640" height="320" href="${rc.getContextPath()}/manage/maintainStrategy/addStrategy?navTabId=${navTabId!''}" title="<@label key='addStrategy.D'>新增保养策略</@label>"><span><@label key="add.B">新增</@label></span> </a>
            </li> </@buttonRight> <@buttonRight menuCode="MAINTAINSTRATEGY_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="640" height="390" href="${rc.getContextPath()}/manage/maintainStrategy/modifyStrategy?id={strategy_code}&navTabId=${navTabId!''}" title="<@label key='editStrategy.D'>编辑保养策略</@label>"><span><@label key="edit.B">编辑</@label></span> </a>
            </li> </@buttonRight> <@buttonRight menuCode="MAINTAINSTRATEGY_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="640" height="375" href="${rc.getContextPath()}/manage/maintainStrategy/viewStrategy?id={strategy_code}&navTabId=${navTabId!''}" title="<@label key='viewStrategy.D'>保养策略详情</@label>"><span><@label key="view.B">详情</@label></span> </a>
            </li> </@buttonRight> <@buttonRight menuCode="MAINTAINSTRATEGY_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" callback="batchjobAjaxDone" href="${rc.getContextPath()}/manage/maintainStrategy/deleteStrategy?navTabId=${navTabId!''}" postType="string" rel="ids" title="<@label key='confirmDelStrategy.M'>确认要删除选择的保养策略吗？</@label>"><span><@label key="delete.B">删除</@label></span> </a>
            </li> </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134" style="overflow: scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="strategyCode"<#if (page.orderField?? && page.orderField == 'strategyCode')>class="${page.orderDirection!''}"</#if>><@label key="strategyCode.C">维护策略编号</@label></th>
                <th width="100" orderField="strategyText"<#if (page.orderField?? && page.orderField == 'strategyText')>class="${page.orderDirection!''}"</#if>><@label key="strategyText.C">维护策略描述</@label></th>
                <th width="100" orderField="strategyTypeECode"<#if (page.orderField?? && page.orderField == 'strategyTypeECode')>class="${page.orderDirection!''}"</#if>><@label key="strategyTypeECode.C">策略类型</@label></th>
                <th width="100" orderField="strategyTimeValue"<#if (page.orderField?? && page.orderField == 'strategyTimeValue')>class="${page.orderDirection!''}"</#if>><@label key="strategyTimeValue.C">周期</@label></th>
                <th width="100" orderField="timeUnitECode"<#if (page.orderField?? && page.orderField == 'timeUnitECode')>class="${page.orderDirection!''}"</#if>><@label key="timeUnitECode.C">周期单位</@label></th>
                <th width="100" orderField="strategyCountValue"<#if (page.orderField?? && page.orderField == 'strategyCountValue')>class="${page.orderDirection!''}"</#if>><@label key="strategyCountValue.C">损耗点</@label></th>
                <th width="100" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>        
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as strategy>
            <tr target="strategy_code" rel="${strategy.strategyCode!''}">
                <td><input name="ids" value="${strategy.strategyCode!''}" type="checkbox"></td>
                <td>${page.startRow + strategy_index}</td>
                <td>${strategy.strategyCode!''}</td>
                <td>${strategy.strategyText!''}</td>
                <td>${strategy.strategyTypeECodeText!''}</td>
                <td>${strategy.strategyTimeValue!''}</td>
                <td>${strategy.timeUnitECodeText!''}</td>
                <td>${strategy.strategyCountValue!''}</td>
                <td><#if strategy.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>

            </tr>
            </#list> <#else>
            <tr target="strategy_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="strategy_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>

<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});


</script>